package com.wanxi.test;

public class MyString {
    public static void main(String[] args) {
//        String s = new String();
////        String s = "";
//        char[] chs = {};
//        String s1 = new String(chs);
////        String s2 = new String("");
//        String s2 = "";
//        String s3 = "aaaa";
//        int a = 10;
//        int b = 10;
//        System.out.println(a == b);
//        Person person1 = new Person();
//        Person person2 = new Person();
//        System.out.println(person1 == person2);
        String s1 = "abc";
        String s2 = "abc";
        System.out.println(s1 == s2);
        char[] chars = {'a', 'b', 'c'};
        String s3 = new String(chars);
        String s4 = new String(chars);
        System.out.println(s3.equals(s4));
        String s5 = "a" + "b" + "c";
        System.out.println(s1 == s5);
    }
}
